//
//  FavManager.h
//  MoeFM
//
//  Created by miyang on 14-11-12.
//  Copyright (c) 2014年 StraightJet. All rights reserved.
//

#import <Foundation/Foundation.h>

#import "OAuth1Controller.h"
#import "Favs.h"
#import "User.h"
#import "Sub.h"

typedef NS_ENUM(int, UserStatus) {
    UserStatusLogIn,
    UserStatusLogOut,
    UserStatusTokenError
};


@interface FavManager : NSObject

+ (instancetype)sharedManager;



@property (nonatomic,assign)int status;

- (void)checkStatus;

@property (nonatomic, strong) OAuth1Controller *oauth1Controller;
@property (nonatomic, strong) NSString *oauthToken;
@property (nonatomic, strong) NSString *oauthTokenSecret;

@property (nonatomic,strong)NSMutableArray *musicarr;
@property (nonatomic,strong)NSMutableArray *radioarr;
@property (nonatomic,strong)NSMutableArray *songarr;

- (void)getFavsWiki;
- (void)getFavsSub;

- (void)favsAddWithType:(NSString *)type andWikiID:(NSInteger)wikiID;
- (void)favsDelWithType:(NSString *)type andWikiID:(NSInteger)wikiID;


@property (nonatomic,strong)User *userdetail;

@end
